﻿CREATE TABLE [dbo].[Friend](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[FriendGroupID] [bigint] NOT NULL,
	[ToID] [bigint] NOT NULL CONSTRAINT [DF_Friend_toid]  DEFAULT ((0)),
	[IsTrue] [bit] NOT NULL CONSTRAINT [DF_Friend_IsTrue]  DEFAULT ((0)),
	[FriendSummary] [int] NULL,
 CONSTRAINT [PK_Friend] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
 CONSTRAINT [IX_Friend] UNIQUE NONCLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]